import request from "../utils/request";

const api_name = '/admin/user'

export default {
  getPageList(page, limit, searchObj){
    return request({
      url: `${api_name}/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },

  lock(userId, status){
    return request({
      url: `${api_name}/lock/${userId}/${status}`,
      method: 'get'
    })
  },

  show(id){
    return request({
      url: `${api_name}/show/${id}`,
      method: 'get',
    })
  },

  approval(userId, authStatus){
    return request({
      url: `${api_name}/approval/${userId}/${authStatus}`,
      method: 'get'
    })
  }


}
